/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.common;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicLong;

public class a {
    private static AtomicLong a = new AtomicLong(0L);
    private static Map b = Collections.synchronizedMap(new HashMap());

    public static long a(IDispatcherCallback paramIDispatcherCallback) {
        if (paramIDispatcherCallback == null)
            return 0L;
        long l = a.incrementAndGet();
        b.put(Long.valueOf(l), paramIDispatcherCallback);
        return l;
    }

    public static IDispatcherCallback a(long paramLong) {
        return ((IDispatcherCallback) b.remove(Long.valueOf(paramLong)));
    }

    public static boolean b(long paramLong) {
        return b.containsKey(Long.valueOf(paramLong));
    }
}